import request from './http';
import {SsoOrganization} from "@/types/entity";

/**
 * sso组织管理 前端接口
 */
export default class SsoOrganizationApi {
  static page(data: SsoOrganization) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoOrganization/page/${index}/${size}`, vo);
  }

  static save(data: SsoOrganization) {
    return request.post<SsoOrganization>('/ssoOrganization', data);
  }

  static update(data: SsoOrganization) {
    return request.put<SsoOrganization>('/ssoOrganization', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoOrganization/delete', ids);
  }

  static list(data: SsoOrganization) {
    return request.post('/ssoOrganization/list', data);
  }

  static getById(id: number) {
    return request.get(`/ssoOrganization/get/${id}`);
  }

  static getListTree() {
    return request.get(`/ssoOrganization/listTree`);
  }


}
